<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/student_homework.css">
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head>

<body>
    <div id="app" class="container">
        <form class="submin" id="answer">
            <!-- <input type="text" placeholder="请输入试卷标题" class="homework_title center" v-model="main_title"> -->
            <div class="job" v-for="(item,index) in data">
                <span>{{index +1 + "."}}</span><span>{{item.title}}</span>
                <div class="job_options">
                    <div v-if="item.A"><input type="checkbox" id="A" value="A" v-bind:name="index">A: <p type="text"> {{ " " + item.A }}</p>
                    </div> 
                    <div v-if="item.B"><input type="checkbox" id="B" value="B" v-bind:name="index">B: <p type="text"> {{ " " + item.B }}</p>
                    </div> 
                    <div v-if="item.C"><input type="checkbox" id="C" value="C" v-bind:name="index">C: <p type="text"> {{ " " + item.C }}</p>
                    </div> 
                    <div v-if="item.D"><input type="checkbox" id="C" value="D" v-bind:name="index">D: <p type="text"> {{ " " + item.D }}</p>
                    </div>
                </div>
                <div v-if="!item.A&&item.right.length!==0"><span>请输入答案</span><textarea></textarea></div>
                <div v-if="!item.A&&item.right.length==0" class="file"><input type="file" name="" id=""></div>

            </div>
            <button type="button" class="submit" @click="submin">提交试卷</button>
        </form>
        <button @click="handleClick"></button>
    </div>
</body>
<script src="../js/vue.js"></script>
<script src="../js/axios.js"></script>
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<!-- <script src="../js/interceptor.js"></script> -->
<script src="./js/student_homework.js"></script>

</html>